﻿#ifndef SYSTEMPARAMDEF_H
#define SYSTEMPARAMDEF_H
#include <QMainWindow>
#include <windows.h>
#include <QString>
#include <QApplication>
#include <QtXml>
#include <QDebug>
#include <iostream>
#include <QMainWindow>
#include <QtXml>
#include <QFile>
#include <QWidget>
#include <QDir>
#include <QDomDocument>
#include <QDomProcessingInstruction>
#include <QStringList>
#include <QList>
#include <QLabel>
#include <QLineEdit>
#include <QProgressBar>
#include <QTreeWidget>
#include <QGroupBox>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QVector>
#include <QMessageBox>
#include <QTableWidget>
#include <QAction>
#include <memory>
#include <QDialog>
#include <QTableWidgetItem>
#include <QMap>
#include <QTextStream>
#include <QComboBox>
#include <QListView>
#include <QCheckBox>
#include <QScrollBar>
#include <QTextEdit>
#include <QTextCodec>
#include <QXmlStreamWriter>
#include <QDomCDATASection>
#include <QProcess>
#include <QtAlgorithms>
#include <QMouseEvent>
#include<QTreeWidgetItem>
#include<QIntValidator>
#include <QFile>

static  QString sSysFilePath =  "/Systems.xml" ;
static QString  sSubFilePath = "/Systems/";

static QString FileTag = "Protos"; //Communicates
static QString FileSubTag = "Proto";//Communicate


enum SvnType
{
    Updatete,
    Commit,
};


typedef struct  DataInfoOldData
{
    int nType;
    QString sData;
    QString sInfo;
}DATAINFOOLDDATA;


typedef struct FindData
{
    int nSubId;
    int nType;
    QString sInfo;
}FINDDATA;

typedef struct SysTempData
{
    int nId;
    QString sData;
}SysTmpData;


//消息类型
enum eSystemType
{
    Server = 0,
    Client = 1
};

//数据类型
enum PROTOCOLDATATYPE
{
    T_BOOL            =0,
    T_CHAR            =1,
    T_UCHAR           =2,
    T_SHORT           =3,
    T_USHORT          =4,
    T_INT             =5,
    T_UINT            =6,
    T_INT64           =7,
    T_UINT64          =8,
    T_FLOAT           =9,
    T_DOUBLE          =10,
    T_STRUCT          =11,
    T_UNION           =12,
    T_STRING          =13,
    T_ARRAY           =14,
};

//面板的类型
enum PanelType
{
    SYSPANEL        = 0,
    SUBPANEL        = 1,
    SUBDATAPANEL    = 2,
    FINDPANEL       = 3,
};


//面板编辑的类型
enum EditType
{
    NOTTODO,
    ADD_DATA,
    EDIT_DATA
};


struct MsgDataInfo{
    int nType;
    QString sName;
    QString sData;
};



#endif // SYSTEMPARAMDEF_H
